<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue demo03(列表渲染)</title>
    <script src="../build/vue.js"></script>
</head>
<body>
<div id="app">
    <ul>
        <li v-for="todo in todos">
            {{todo.text}}
        </li>
    </ul>
</div>
<script>
    new Vue({
        el: '#app',
        data: {
            todos: [
                {
                    text: 'xiaobao'
                },
                {
                    text: 'weixiaobao'
                },
                {
                    text: 'xiaobaowei'
                }
            ]
        }
    });
</script>
</body>
</html>